package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="Equipment"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Equipment implements Serializable {

    /** identifier field */
    private Integer equId;

    /** nullable persistent field */
    private String equName;

    /** nullable persistent field */
    private String equType;

    /** nullable persistent field */
    private String equModel;

    /** nullable persistent field */
    private String equState;

    /** nullable persistent field */
    private String buyDate;

    /** nullable persistent field */
    private Double price;

    /** nullable persistent field */
    private Integer amount;

    /** nullable persistent field */
    private String buyer;

    /** nullable persistent field */
    private String regDate;

    /** nullable persistent field */
    private String introduce;

    /** nullable persistent field */
    private String remark;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String assoId;

    /** full constructor */
    public Equipment(String equName, String equType, String equModel, String equState, String buyDate, Double price, Integer amount, String buyer, String regDate, String introduce, String remark, String userId, String latestDate, String assoId) {
        this.equName = equName;
        this.equType = equType;
        this.equModel = equModel;
        this.equState = equState;
        this.buyDate = buyDate;
        this.price = price;
        this.amount = amount;
        this.buyer = buyer;
        this.regDate = regDate;
        this.introduce = introduce;
        this.remark = remark;
        this.userId = userId;
        this.latestDate = latestDate;
        this.assoId = assoId;
    }

    /** default constructor */
    public Equipment() {
    }

    /** minimal constructor */
    public Equipment(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="EquId"
     *             unsaved-value="0"
     *         
     */
    public Integer getEquId() {
        return this.equId;
    }

    public void setEquId(Integer equId) {
        this.equId = equId;
    }

    /** 
     *            @hibernate.property
     *             column="EquName"
     *             length="100"
     *         
     */
    public String getEquName() {
        return this.equName;
    }

    public void setEquName(String equName) {
        this.equName = equName;
    }

    /** 
     *            @hibernate.property
     *             column="EquType"
     *             length="50"
     *         
     */
    public String getEquType() {
        return this.equType;
    }

    public void setEquType(String equType) {
        this.equType = equType;
    }

    /** 
     *            @hibernate.property
     *             column="EquModel"
     *             length="6"
     *         
     */
    public String getEquModel() {
        return this.equModel;
    }

    public void setEquModel(String equModel) {
        this.equModel = equModel;
    }

    /** 
     *            @hibernate.property
     *             column="EquState"
     *             length="6"
     *         
     */
    public String getEquState() {
        return this.equState;
    }

    public void setEquState(String equState) {
        this.equState = equState;
    }

    /** 
     *            @hibernate.property
     *             column="BuyDate"
     *             length="23"
     *         
     */
    public String getBuyDate() {
        return this.buyDate;
    }

    public void setBuyDate(String buyDate) {
        this.buyDate = buyDate;
    }

    /** 
     *            @hibernate.property
     *             column="Price"
     *             length="53"
     *         
     */
    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    /** 
     *            @hibernate.property
     *             column="Amount"
     *             length="10"
     *         
     */
    public Integer getAmount() {
        return this.amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    /** 
     *            @hibernate.property
     *             column="Buyer"
     *             length="50"
     *         
     */
    public String getBuyer() {
        return this.buyer;
    }

    public void setBuyer(String buyer) {
        this.buyer = buyer;
    }

    /** 
     *            @hibernate.property
     *             column="RegDate"
     *             length="23"
     *         
     */
    public String getRegDate() {
        return this.regDate;
    }

    public void setRegDate(String regDate) {
        this.regDate = regDate;
    }

    /** 
     *            @hibernate.property
     *             column="Introduce"
     *             length="2147483647"
     *         
     */
    public String getIntroduce() {
        return this.introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="200"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="assoId"
     *             length="20"
     *         
     */
    public String getAssoId() {
        return this.assoId;
    }

    public void setAssoId(String assoId) {
        this.assoId = assoId;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("equId", getEquId())
            .toString();
    }

}
